package cn.itcast.bos.service.base;



import cn.itcast.bos.domain.take_delivey.PageBean;
import cn.itcast.bos.domain.take_delivey.Promotion;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;


public interface PromotionService {
    void save(Promotion model);

    Page<Promotion> findPageData(PageRequest pageRequest);


    @Path("/pageQuery")
    @GET
    @Produces({"application/xml", "applition/json"})
    PageBean findPageData(@QueryParam("page") int page,
                                     @QueryParam("rows") int rows);

}
